﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using LayuiDemo.Models;


namespace LayuiDemo.ViewModels.PostVMs
{
    public partial class PostSearcher : BaseSearcher
    {
        public String Title { get; set; }
        public String Content { get; set; }
        public List<ComboSelectListItem> AllBlogs { get; set; }
        public Guid? BlogId { get; set; }

        protected override void InitVM()
        {
            AllBlogs = DC.Set<Blog>().GetSelectListItems(Wtm, y => y.Url);
        }

    }
}
